{template header}

<div class="container">

    <ol class="breadcrumb">
        <li><a href="{SITE_URL}">首页</a></li>
        <li><a href="{tsUrl('group')}">小组</a></li>
        <li><a href="{tsUrl('group','show',array('id'=>$strGroup['groupid']))}">{$strGroup[groupname]}</a></li>
        <li class="active">小组设置</li>
    </ol>

    <div class="panel panel-default">
        <div class="panel-body">
{template edit_xbar}


<div class="row">
<div class="col-md-8">



<form class="form-inline" method="POST" action="{tsUrl('group','edit',array('ts'=>'typeadd','groupid'=>$groupid))}">
  <div class="form-group">
    <label class="sr-only">添加帖子分类：</label>
    <input name="typename" class="form-control" placeholder="添加帖子分类">
  </div>

<input type="hidden" name="groupid" value="{$strGroup[groupid]}" />
  <button type="submit" class="btn btn-success">添加帖子分类</button>

    <a class="btn btn-default" href="{tsUrl('group','show',array('id'=>$strGroup[groupid]))}">返回小组</a>

</form>



<table class="table">
<thead>
<tr>
<th>类型</th><th>操作</th>
</tr>
</thead>

<tbody>
{loop $arrGroupType $key $item}

<form class="form-control" method="post" action="{tsUrl('group','edit',array('ts'=>'typeedit','groupid'=>$groupid))}">
<tr>
<td>

        <input class="form-control" name="typename" value="{$item[typename]}" />





</td><td>
    <input type="hidden" name="typeid" value="{$item['typeid']}">
    <input type="submit" class="btn btn-default" value="修改" />

    <a class="btn btn-default" href="{tsUrl('group','edit',array('ts'=>'typedelete','groupid'=>$groupid,'typeid'=>$item['typeid']))}" >删除</a></td>
</tr>
</form>
{/loop}
</tbody>
</table>


</div>
<div class="col-md-4"></div>
</div>



</div>
</div>

</div>
{template footer}